home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_13_05
/
allison
/
person3.h
< prev
next >
Wrap
C/C++ Source or Header
|
1995-03-12
|
540b
|
27 lines
LISTING 21 - A well-behaved version of Listing 19
// person3.h
#include "date5.h"
#include "bool.h"
class ostream;
class Person
{
friend ostream & operator<<(ostream &, const Person &);
public:
Person();
Person(const char *,const char *,const Date &,const char *);
Person(const Person &); // NEW
~Person();
Person& operator=(const Person &); // NEW
bool operator==(const Person &) const;
private:
char * last;
char * first;
Date birth;
char * ssn;
};